﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using FazaDemo.BL.CM.CollectionMechanisms;

namespace FazaDemo.BL.Services
{
    class ParamsProvider
    {

        private const string Semicolon = ";";

        public IList<string> GetParams(List<string> fieldsInfo)
        {
            var curInfo = fieldsInfo;
            var fieldParamLists = curInfo.Split(Semicolon).ToList();
            var fieldParams = new List<string>();
            foreach (var info in fieldParamLists)
            {
                fieldParams.Add(String.Join(" ", info));
            }
            return fieldParams;
        }
    }
}
